/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.menu.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import javax.persistence.criteria.CriteriaBuilder;
import java.math.BigDecimal;

/**
 * 订单商品Entity
 * @author dby
 * @version 2020-07-12
 */
public class OrderGoods3 extends DataEntity<OrderGoods3> {
	
	private static final long serialVersionUID = 1L;
	private String id;		// id
	private String orderId;		// 订单id
	private String name;		// 名字
	private BigDecimal price;		// 价格
	private String url;		// 首图
	private Integer stock;		// 商品库存
	private String specs;		// 首图
	private Integer onlineFlag;		// 首图
	private String sort;		// 首图

	public OrderGoods3() {
		super();
	}

	public OrderGoods3(String id){
		super(id);
	}

	@Length(min=0, max=50, message="订单id长度必须介于 0 和 50 之间")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	@Length(min=0, max=50, message="名字长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}
	
	@Length(min=0, max=50, message="首图长度必须介于 0 和 50 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getSpecs() {
		return specs;
	}

	public void setSpecs(String specs) {
		this.specs = specs;
	}

	public Integer getOnlineFlag() {
		return onlineFlag;
	}

	public void setOnlineFlag(Integer onlineFlag) {
		this.onlineFlag = onlineFlag;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
}